<?php
  class boxingQuotes {
    function getQuote($boxer) {
      if ($boxer == "Tyson") {
        $quote = "My main objective is to be professional 
                  but to kill him. (2002)";
        } elseif ($boxer == "Ali") {
          $quote = "I am the greatest. (1962)";
        } elseif ($boxer == "Foreman") {
          $quote = "Generally when there's a lot of smoke, 
                    there's just a whole lot more smoke. (1995)";
        } else {
          $quote = "Sorry, $boxer was not found.";
        }
        return $quote;
      }
    }     
 
    $soapserver = new SoapServer("boxing.wsdl");
	//$soapserver->addFunction("getQuote");
    
    $soapserver->setClass("boxingQuotes");			//setClass() can expose all functions.
    $soapserver->handle();
?>